package edu.yctc.patterns.entity;

import java.util.Date;

/**
 * 
 * @className UserDO
 * @description 用户实体
 * @author zyj
 * @date 2019年12月10日
 *
 */
public class UserDO {

    private long id;

    /** 用户标识, 见{@link edu.yctc.patterns.constant.entity.tag.UserTag} */
    private int tag;

    private String account;

    private String password;

    private Date createTime;

    private Date modifyTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("UserDO [id=");
        builder.append(id);
        builder.append(", tag=");
        builder.append(tag);
        builder.append(", account=");
        builder.append(account);
        builder.append(", password=");
        builder.append(password);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", modifyTime=");
        builder.append(modifyTime);
        builder.append("]");
        return builder.toString();
    }

}
